<%--
  Created by IntelliJ IDEA.
  User: Fan307
  Date: 2016/11/23
  Time: 9:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>测试网页</title>
</head>
<body>
<%
    String path = "res\\computer\\CDUT\\program\\C";
    System.out.println(path);
    String filename1 = path.substring(3);
    System.out.println(filename1);
    Integer index = path.lastIndexOf('\\');
    String filename2 = path.substring(index + 1);
    System.out.println(filename2);
    System.out.println();
    System.out.println();
    System.out.println();
    System.out.println();

%>

</body>
</html>
